<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/home/js/layui/css/layui.css" />
		<link rel="stylesheet" href="__STATIC__/home/css/admin.css" />
		<script type="text/javascript" src="__STATIC__/home/js/jquery.min.js"></script>
		<script type="text/javascript" src="__STATIC__/home/js/layui/layui.js"></script>
	</head>
	<body class="pd30" data-id="bankIndex"> 
		<div class="center-nav f20">{$pageData.title}</div>
		<div class="center-from b-w">
			<form class="layui-form" name="postForm" method="post" action="{:url('bank.handle/add')}">
				<ul class="center-from-ul clearfix">
					
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">开户银行</label>
							<div class="layui-input-block">
								<select name="bank_id" lay-filter="bank_id" id="BankLsit">
									
								</select>
							</div>
						</div>
					</li>
					
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">开户地址</label>
							<div class="layui-input-block">
								<input type="text" name="bank_address" autocomplete="off" placeholder="请输入开户地址" class="layui-input">
							</div>
						</div>
					</li>
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">银行卡号</label>
							<div class="layui-input-block">
								<input type="text" name="bank_card" autocomplete="off" placeholder="请输入银行卡号" class="layui-input">
							</div>
						</div>
					</li>
					<li class="width6">
						<div class="layui-form-item">
							<label class="layui-form-label">开户人</label>
							<div class="layui-input-block">
								<input type="text" name="owner" autocomplete="off" placeholder="请输入开户人姓名" class="layui-input">
							</div>
						</div>
					</li>
					<li style="display: none;">
						<input type="hidden" value="{$token}" name="token">
					</li>
				</ul>
			    <p class="center-from-p"><input type="button" lay-submit="submit" lay-filter="bankIndexSubmit" class="layui-btn layui-bg-orange" value="添加银行卡"></p>
			</form>
		</div>

<div class="center-nav f20" style=" padding: 20px 0;">我的银行卡</div>
<div class="bank-list b-w">
	<table class="layui-hide" id="Table" lay-filter="TableUser"></table> 
	<script type="text/html" id="barDemo">
	  <!-- 这里的 checked 的状态只是演示 -->
	  <input type="checkbox" name="{$token}" value="{{d.id}}" title="默认银行" lay-filter="defaultDemo" {{ d.default == 1 ? 'checked' : '' }}>
	</script>
</div>
<script>
	//添加银行卡
	var addBank="{:url('bank.handle/add')}";
	//银行列表
	var BankLsitSrc="{:url('bank.api/bank')}";
	//我的银行卡列表
	var BankCard="{:url('bank.api/bank_card')}";
	//设置默认银行卡
	var BankSetDefault="{:url('bank.handle/set_default')}";
</script>
<script type="text/javascript" src="__STATIC__/home/js/public.js"></script>
</body>
</html>